Handle ISO_Level3_Shift keysym as AltGr in ioemu/vncfb.
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Mon, 30 Apr 2007 14:06:34 +0000 (15:06 +0100)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Mon, 30 Apr 2007 14:06:34 +0000 (15:06 +0100)
The modern (xkb) way of mapping the AltGr key (113) seems to be using
the ISO_Level3_Shift keysym (0xFE03) instead of the obsolete
Mode_switch keysym (0xFF7E).

This patch let the "keysym to scancode" translator handle the
ISO_Level3_Shift correctly, enabling the use of characters like
~#{[|`\^@]} on a french keyboard.

From: Cedric Schieli <cschieli@gmail.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
tools/ioemu/keymaps/modifiers
tools/ioemu/vnc_keysym.h

index d8b019f04004bf50a9ea7bf6fe8ba1f2157fc598..350cb798d781bccfe6c440ed71b707aa30716725 100644 (file)
@@ -3,6 +3,7 @@ Shift_L 0x2a
 
 Alt_R 0xb8
 Mode_switch 0xb8
+ISO_Level3_Switch 0xb8
 Alt_L 0x38
 
 Control_R 0x9d
index 5c471044426a2c45bb2b224794a96319183b2a91..9c6c05f8cfbf47a7a93f68866f85c3130b0b3050 100644 (file)
@@ -215,6 +215,7 @@ static name2keysym_t name2keysym[]={
 {"Shift_R", 0xffe2},   /* XK_Shift_R */
 {"Super_L", 0xffeb},   /* XK_Super_L */
 {"Super_R", 0xffec},   /* XK_Super_R */
+{"ISO_Level3_Shift", 0xfe03}, /* XK_ISO_Level3_Shift */
 
     /* special keys */
 {"BackSpace", 0xff08}, /* XK_BackSpace */